package cn.fourhundredandeighteen.dao;

import cn.fourhundredandeighteen.entity.SubjectStudent;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SubjectStudentDao {
    int deleteByPrimaryKey(Long id);

    int insert(SubjectStudent record);

    int insertSelective(SubjectStudent record);

    SubjectStudent selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SubjectStudent record);

    int updateByPrimaryKey(SubjectStudent record);

    List<Long> selectStudentToSubject(Long studentId);

    List<Long> selectSubjectToStudent(Long subjectId);

    int insertStudentAndSubjectList(@Param("subjectId") Long subjectId,@Param("studentIds") Long[] studentIds);
}